/* 常数 */

// 域名地址
export let baseurl = window.location.origin; 

// 交易类型列表
export const incomeTypeList = [
    {id:11,label:"转账入金"},
    {id:10,label:"母户入金"},
    {id:13,label:"大额订单入金"},
    {id:14,label:"资产分润入金"},
    {id:33,label:"提现退汇"},
    {id:37,label:"虚户入金退回退汇"},
    {id:39,label:"大额订单入金退回退汇"},
]

// 收支类型列表
export const operationTypeList = [
    { id:0, name:'全部' },
    { id:1, name:'提现' },
    { id:2, name:'资金归集' },
    { id:3, name:'余额迁移' }
]
// 时间范围快捷选择
export const dateShortcuts = [
    {
      text : '最近一周',
      value: () => {
        const start = new Date()
        const end   = new Date()
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
        return [start, end]
      },
    },
    {
      text: '最近一个月',
      value: () => {
        const start = new Date()
        const end  = new Date()
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
        return [start, end]
      },
    },
    {
      text: '最近三个月',
      value: () => {
        const start = new Date()
        const end   = new Date()
        start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
        return [start, end]
      },
    },
]
// 金额范围快捷选择
export const amountList = [
    {
      id: 0,
      label: '全部',
      value:[0,500000000]
    },
    {
      id: 1,
      label: '0-1000',
      value:[0,1000]
    },
    {
      id: 2,
      label: '1000-5000',
      value:[1000,5000]
    },
    {
      id: 3,
      label: '5000-10000',
      value:[5000,10000]
    },
    {
      id: 4,
      label: '10000以上',
      value:[10000,5000000]
    },
]